<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: ClientFactory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_client_factory-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">ClientFactory类 参考<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>客户端类工厂  
 <a href="class_client_factory.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa8c251c063b7325d6396fe5abbdfb694"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_factory.html#aa8c251c063b7325d6396fe5abbdfb694">ClientFactory</a> ()</td></tr>
<tr class="separator:aa8c251c063b7325d6396fe5abbdfb694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ba4dcd5eb042b3136817ae7ad6e78dd"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_factory.html#a9ba4dcd5eb042b3136817ae7ad6e78dd">~ClientFactory</a> ()</td></tr>
<tr class="separator:a9ba4dcd5eb042b3136817ae7ad6e78dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c25b038c71194786ee5a1dbd21d5f79"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_client.html">Client</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_factory.html#a2c25b038c71194786ee5a1dbd21d5f79">GetClient</a> ()=0</td></tr>
<tr class="memdesc:a2c25b038c71194786ee5a1dbd21d5f79"><td class="mdescLeft">&#160;</td><td class="mdescRight">生产一个client  <a href="class_client_factory.html#a2c25b038c71194786ee5a1dbd21d5f79">更多...</a><br /></td></tr>
<tr class="separator:a2c25b038c71194786ee5a1dbd21d5f79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add417d335c5811f27b16d1668be3a03c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_client_factory.html#add417d335c5811f27b16d1668be3a03c">ReleaseClient</a> (<a class="el" href="class_client.html">Client</a> *c)=0</td></tr>
<tr class="memdesc:add417d335c5811f27b16d1668be3a03c"><td class="mdescLeft">&#160;</td><td class="mdescRight">回收一个client  <a href="class_client_factory.html#add417d335c5811f27b16d1668be3a03c">更多...</a><br /></td></tr>
<tr class="separator:add417d335c5811f27b16d1668be3a03c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>客户端类工厂 </p>
<dl class="section remark"><dt>备注</dt><dd>任何使用该框架的服务架构必须继承此类，然后传入服务池中 </dd></dl>

<p class="definition">在文件 <a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a> 第 <a class="el" href="_class_factory_8h_source.html#l00016">16</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="aa8c251c063b7325d6396fe5abbdfb694"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8c251c063b7325d6396fe5abbdfb694">&#9670;&nbsp;</a></span>ClientFactory()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">ClientFactory::ClientFactory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a> 第 <a class="el" href="_class_factory_8h_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<a id="a9ba4dcd5eb042b3136817ae7ad6e78dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ba4dcd5eb042b3136817ae7ad6e78dd">&#9670;&nbsp;</a></span>~ClientFactory()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual ClientFactory::~ClientFactory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a> 第 <a class="el" href="_class_factory_8h_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a2c25b038c71194786ee5a1dbd21d5f79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c25b038c71194786ee5a1dbd21d5f79">&#9670;&nbsp;</a></span>GetClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_client.html">Client</a>* ClientFactory::GetClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>生产一个client </p>

</div>
</div>
<a id="add417d335c5811f27b16d1668be3a03c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add417d335c5811f27b16d1668be3a03c">&#9670;&nbsp;</a></span>ReleaseClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void ClientFactory::ReleaseClient </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_client.html">Client</a> *&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>回收一个client </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/framework/tcp/<a class="el" href="_class_factory_8h_source.html">ClassFactory.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
